package com.jvtd.eyl.widget.provider;

import android.widget.Toast;

import com.chad.library.adapter.base.BaseViewHolder;
import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.jvtd.eyl.R;
import com.jvtd.eyl.bean.ui.HomeBean;
import com.jvtd.eyl.widget.adapter.HomeAdapter;

/**
 * 标题-供应商
 *
 * 作者:chenlei
 * 时间:2018/11/12 4:45 PM
 */
public class TitleProvider extends BaseItemProvider<HomeBean, BaseViewHolder> {
    @Override
    public int viewType() {
        return HomeAdapter.ADAPTER_TYPE_TITLE;
    }

    @Override
    public int layout() {
        return R.layout.adapter_title;
    }

    @Override
    public void convert(BaseViewHolder helper, HomeBean data, int position) {
        helper.addOnClickListener(R.id.more_btn);
    }
}
